<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui">

    <body>

        <ui:composition >

            <p:panel >
                <h:panelGrid columns="2" >
                    <p:commandButton id="btnSalvar" 
                                     value="Salvar F10" 
                                     icon="iconSalvar"
                                     action="#{anjoBean.salvar()}"
                                     update=":geral,:geral:mensagem, :geral:pnlProcesso"
                                     />
                    <p:commandButton value="Voltar Esc"
                                     id="btnVoltar"
                                     action="#{anjoBean.voltar()}"
                                     icon="iconFechar"
                                     update=":geral:pnlProcesso, :geral:mensagem"/>
                </h:panelGrid>
            </p:panel>


            <h:panelGrid columns="2">

                <h:outputText  value="Nome: "/>
                <h:inputText id="nomeA" value="#{anjoBean.anjo.nome}" label="Anjo" size="46"/>

                <h:outputText  value="Apelido: "/>
                <h:inputText id="apelido" value="#{anjoBean.anjo.apelido}" label="Apelido" size="46"/>

                <h:outputText value="E-mail: "/>
                <h:inputText id="emailA" value="#{anjoBean.anjo.email}" label="Email" size="46"/>

                <h:outputText value="RG: "/>
                <h:inputText id="rg" value="#{anjoBean.anjo.rg}" label="RG" size="30"/>

                <h:outputText   value="Telefone: "/>
                <h:inputText id="telefone" value="#{anjoBean.anjo.telefone}" label="Telefone" size="40"/>
            </h:panelGrid>

        </ui:composition>

    </body>
</html>
